ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
BUILD_DIR = ../../build/
ASSEMBLY_NAME=Galaxium.Client.GtkGui
ASSEMBLY = $(BUILD_DIR)$(ASSEMBLY_NAME).dll

COMPILE_TARGET = library

REFERENCES =  \
	$(GLADE_SHARP_LIBS) \
	$(GTK_SHARP_LIBS) \
	-pkg:anculus-core \
	-pkg:anculus-gui \
	-pkg:mono-addins \
	-pkg:mono-addins-setup \
	-pkg:ndesk-dbus-1.0 \
	-pkg:ndesk-dbus-glib-1.0 \
	-r:../../build/Galaxium.Client.dll \
	-r:../../build/Galaxium.Core.dll \
	-r:../../build/Galaxium.Gui.dll \
	-r:../../build/Galaxium.Gui.GtkGui.dll \
	-r:../../build/Galaxium.Protocol.dll \
	-r:../../build/Galaxium.Protocol.Gui.dll \
	-r:Mono.Posix \
	-r:System

RESOURCES =  \
	Galaxium.Client.GtkGui.addin \
	Icons/large_galaxium.png \
	Icons/large_galaxium-add-contact.png \
	Icons/large_galaxium-add-group.png \
	Icons/large_galaxium-contact.png \
	Icons/large_galaxium-contactlist.png \
	Icons/large_galaxium-conversation.png \
	Icons/large_galaxium-copy-contact.png \
	Icons/large_galaxium-error.png \
	Icons/large_galaxium-group.png \
	Icons/large_galaxium-idle.png \
	Icons/large_galaxium-information.png \
	Icons/large_galaxium-lock.png \
	Icons/large_galaxium-move-contact.png \
	Icons/large_galaxium-offline.png \
	Icons/large_galaxium-online.png \
	Icons/large_galaxium-preferences.png \
	Icons/large_galaxium-question.png \
	Icons/large_galaxium-remove-contact.png \
	Icons/large_galaxium-remove-group.png \
	Icons/large_galaxium-rename-group.png \
	Icons/large_galaxium-server.png \
	Icons/large_galaxium-server-messages.png \
	Icons/large_galaxium-set-image.png \
	Icons/large_galaxium-set-nickname.png \
	Icons/large_galaxium-transfer-receive.png \
	Icons/large_galaxium-warning.png \
	Icons/mediumsmall_galaxium-actions.png \
	Icons/mediumsmall_galaxium-block.png \
	Icons/mediumsmall_galaxium-clear.png \
	Icons/mediumsmall_galaxium-history.png \
	Icons/mediumsmall_galaxium-invite.png \
	Icons/mediumsmall_galaxium-notes.png \
	Icons/mediumsmall_galaxium-nudge.png \
	Icons/mediumsmall_galaxium-transfer.png \
	Icons/mediumsmall_galaxium-transfer-open.png \
	Icons/mediumsmall_galaxium-webcam.png \
	Icons/other_display-fade.png \
	Icons/other_frame-huge.png \
	Icons/other_frame-info.png \
	Icons/other_frame-large.png \
	Icons/other_frame-medium.png \
	Icons/other_frame-small.png \
	Icons/other_galaxium-about.png \
	Icons/other_galaxium-banner.png \
	Icons/other_galaxium-displayimage.png \
	Icons/other_galaxium-mono.png \
	Icons/other_galaxium-preferences.png \
	Icons/other_galaxium-transfers.png \
	Icons/other_galaxium-tray-alert.png \
	Icons/other_galaxium-tray-away.png \
	Icons/other_galaxium-tray-brb.png \
	Icons/other_galaxium-tray-busy.png \
	Icons/other_galaxium-tray-email.png \
	Icons/other_galaxium-tray-idle.png \
	Icons/other_galaxium-tray-invisible.png \
	Icons/other_galaxium-tray-lunch.png \
	Icons/other_galaxium-tray-offline.png \
	Icons/other_galaxium-tray-online.png \
	Icons/other_galaxium-tray-pending.png \
	Icons/other_galaxium-tray-phone.png \
	Icons/other_galaxium-tray-transfer.png \
	Icons/other_galaxium-tray-unread.png \
	Icons/other_galaxium-typing_anim.gif \
	Icons/other_galaxium-typing_blank.png \
	Icons/other_galaxium-typing_stopped.png \
	Icons/small_galaxium-about.png \
	Icons/small_galaxium-add.png \
	Icons/small_galaxium-add-contact.png \
	Icons/small_galaxium-add-group.png \
	Icons/small_galaxium-apply.png \
	Icons/small_galaxium-block.png \
	Icons/small_galaxium-cancel.png \
	Icons/small_galaxium-clear.png \
	Icons/small_galaxium-close.png \
	Icons/small_galaxium-color-foreground.png \
	Icons/small_galaxium-contactlist.png \
	Icons/small_galaxium-conversation.png \
	Icons/small_galaxium-copy.png \
	Icons/small_galaxium-delete.png \
	Icons/small_galaxium-emoticon.png \
	Icons/small_galaxium-exit.png \
	Icons/small_galaxium-find.png \
	Icons/small_galaxium-font-bold.png \
	Icons/small_galaxium-font-decrease.png \
	Icons/small_galaxium-font-face.png \
	Icons/small_galaxium-font-increase.png \
	Icons/small_galaxium-font-italic.png \
	Icons/small_galaxium-font-normal.png \
	Icons/small_galaxium-font-strikethrough.png \
	Icons/small_galaxium-font-underline.png \
	Icons/small_galaxium-group.png \
	Icons/small_galaxium-help.png \
	Icons/small_galaxium-image.png \
	Icons/small_galaxium-images.png \
	Icons/small_galaxium-info.png \
	Icons/small_galaxium-invite.png \
	Icons/small_galaxium-move.png \
	Icons/small_galaxium-nudge.png \
	Icons/small_galaxium-ok.png \
	Icons/small_galaxium-preferences.png \
	Icons/small_galaxium-preferences-addins.png \
	Icons/small_galaxium-preferences-logging.png \
	Icons/small_galaxium-preferences-proxy.png \
	Icons/small_galaxium-preferences-themes.png \
	Icons/small_galaxium-preferences-windows.png \
	Icons/small_galaxium-remove.png \
	Icons/small_galaxium-save.png \
	Icons/small_galaxium-server.png \
	Icons/small_galaxium-set.png \
	Icons/small_galaxium-sounds.png \
	Icons/small_galaxium-spellcheck.png \
	Icons/small_galaxium-start.png \
	Icons/small_galaxium-status-away.png \
	Icons/small_galaxium-status-block.png \
	Icons/small_galaxium-status-brb.png \
	Icons/small_galaxium-status-busy.png \
	Icons/small_galaxium-status-idle.png \
	Icons/small_galaxium-status-invisible.png \
	Icons/small_galaxium-status-lunch.png \
	Icons/small_galaxium-status-mobile.png \
	Icons/small_galaxium-status-offline.png \
	Icons/small_galaxium-status-online.png \
	Icons/small_galaxium-status-phone.png \
	Icons/small_galaxium-status-reverse.png \
	Icons/small_galaxium-stop.png \
	Icons/small_galaxium-tab.png \
	Icons/small_galaxium-transfer.png \
	Icons/small_galaxium-transfer-open.png \
	Icons/small_galaxium-transfer-receive.png \
	Icons/small_galaxium-transfer-send.png \
	Icons/small_galaxium-unblock.png \
	Icons/small_galaxium-user-info.png \
	Icons/tiny_galaxium-tab-close.png \
	Resources/AboutDialog.glade \
	Resources/AccountDialog.glade \
	Resources/ContainerWindow.glade \
	Resources/DebugWindow.glade \
	Resources/EmoticonPreferenceWidget.glade \
	Resources/GtkPreferenceWidget.glade \
	Resources/LoggingPreferenceWidget.glade \
	Resources/MainWindow.glade \
	Resources/MessageDisplayPreferenceWidget.glade \
	Resources/PluginPreferenceWidget.glade \
	Resources/PreferencesDialog.glade \
	Resources/ProxyPreferenceWidget.glade \
	Resources/SoundPreferenceWidget.glade \
	Resources/TransferDialog.glade \
	Resources/TransferOverwriteDialog.glade \
	Resources/TransferPreferenceWidget.glade \
	Resources/TransferWindow.glade 
EXTRAS = 
DATA_FILES = 

FILES =  \
	Activities/GtkActivityListener.cs \
	Activities/GtkActivityPreProcessor.cs \
	Commands/ConversationCommands.cs \
	Commands/GalaxiumMenuCommands.cs \
	Commands/HelpMenuCommands.cs \
	Commands/TrayMenuCommands.cs \
	Commands/ViewMenuCommands.cs \
	Conditions/ActiveConversationSessionCondition.cs \
	Conditions/MainWindowVisibleCondition.cs \
	Dialogs/AboutDialog.cs \
	Dialogs/AccountsDialog.cs \
	Dialogs/PreferencesDialog.cs \
	Dialogs/TransferDialog.cs \
	Dialogs/TransferOverwriteDialog.cs \
	Extensions/PreferenceWidgetExtension.cs \
	GtkThreadDispatcher.cs \
	Notifications/GtkNotification.cs \
	Notifications/GtkNotificationBackend.cs \
	Notifications/GtkTrayWidget.cs \
	Notifications/notify-sharp/Global.cs \
	Notifications/notify-sharp/Notification.cs \
	Preferences/CategoryTreeNodeBuilder.cs \
	Preferences/EmoticonPreferenceWidget.cs \
	Preferences/GtkPreferenceWidget.cs \
	Preferences/LoggingPreferenceWidget.cs \
	Preferences/MessageDisplayPreferenceWidget.cs \
	Preferences/PluginPreferenceWidget.cs \
	Preferences/PluginTreeNodeBuilder.cs \
	Preferences/PreferenceCategory.cs \
	Preferences/PreferencePluginTreeView.cs \
	Preferences/ProxyPreferenceWidget.cs \
	Preferences/SoundPreferenceWidget.cs \
	Preferences/TransferPreferenceWidget.cs \
	Utilities/GalaxiumUtility.cs \
	Utilities/GtkActivityUtility.cs \
	Utilities/GtkWindowUtility.cs \
	Windows/ContainerWindow.cs \
	Windows/DebugWindow.cs \
	Windows/MainWindow.cs \
	Windows/TransferWindow.cs

GENERATED_FILES = AssemblyInfo.cs

all: $(ASSEMBLY)

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) 
	mkdir -p $(dir $(ASSEMBLY))		
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)

include $(top_srcdir)/Makefile.include
